package cn.mw.cmdb.timeplan.entity;

import cn.mw.cmdb.entity.PropertyTypeTime;
import cn.mw.components.mongodb.anno.CMDBProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class MaintainTime {
    @Schema(description = "生效开始时间")
    @CMDBProperty(searchType = PropertyTypeTime.ID)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:dd")
    private Date activeSince;

    @Schema(description = "生效结束时间")
    @CMDBProperty(searchType = PropertyTypeTime.ID)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:dd")
    private Date activeTill;
}
